<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="UTF-8">
    <title>更新用户状态</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" th:href="@{/myconfig/layui/css/layui.css}" media="all">
</head>
<body>
<!-- 查看详情 -->
<form class="layui-form" style="margin: 25px">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">用户id</label>
            <label class="layui-form-label" th:text="${user.userId}" style="text-align: left">用户id</label>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">用户名</label>
            <label class="layui-form-label" th:text="${user.userName}" style="text-align: left">用户名</label>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">电话号码</label>
            <label class="layui-form-label" th:text="${user.userPhone}" style="text-align: left"></label>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">登录名称</label>
            <label class="layui-form-label" th:text="${user.userLoginName}" style="text-align: left"></label>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">所在地区</label>
            <label class="layui-form-label" th:text="${user.area.areaName}" style="text-align: left"></label>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">所在部门</label>
            <label class="layui-form-label" th:text="${user.department.departmentName}"
                   style="text-align: left"></label>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">账号状态</label>
            <label class="layui-form-label" th:text="${user.userStatus.userStatusName}"
                   style="text-align: left"></label>
        </div>
    </div>
    <div class="layui-form-item" style="text-align: center">
            <button class="layui-btn layui-btn-normal closeLayer">确定</button>
    </div>
</form>

<script type="text/javascript" th:src="@{/myconfig/layui/layui.js}" charset="utf-8"></script>
<!-- 获取根路径 -->
<script th:replace="fragscript :: basePath"></script>
<script type="text/javascript" th:inline="none">
    layui.use(['form', 'jquery'], function () {
        var layer = parent.layui.layer;
        var $ = layui.jquery;
        var index = layer.getFrameIndex(window.name);//弹出层窗口index
        $(".closeLayer").click(function () {
            layer.close(index);
        });
    })
</script>
</body>
</html>